import java.io.UnsupportedEncodingException;

/**
 * @author：刘东
 * @created: 2013-6-25 下午03:41:32 
 * @version：$Id$ 
 * @since:1.0
 * @copyright 
 *
 */

public class Format {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		//四舍五入小数保留2位
		double a=100.91;
		double b=20.59845;
		System.out.println(a*b);
		System.out.println(String.format("%.2f", a*b));
		String str="啊啊";
		try {
			str=new String(str.getBytes("ISO885921"),"UTF-8");
		} catch (UnsupportedEncodingException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		System.out.println(str);
	}

}
